<?php
$this->lang->load('template');
//$this->lang->load('validation');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0042)http://www.fav365.com/ball/?m=admin&c=good -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<LINK href="/css/admin.css" 
type=text/css rel=stylesheet>
<script src="/js/global.js" type="text/javascript"></script>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
</HEAD>
<BODY>
<DIV class=admin_box>
  <DIV class=admin_boxtop></DIV>
  <DIV class=admin_boxmain>
    <FORM id=postform name=postform method=post action="<?php echo site_url('categories/remove'); ?>" >
      <TABLE cellSpacing=1 cellPadding=0 width="96%" align=center border=0>
        <TBODY>
          <TR>
            <TD><H1 class=title>
            <?=$this->lang->line('tpl_article');?><?=$this->lang->line('tpl_cates');?>
			</H1></TD>
          </TR>
        </TBODY>
      </TABLE>
      <TABLE class=table cellSpacing=1 cellPadding=5 width="96%" align=center border=0>
        <TBODY>
          <TR>
            <TD class=tdbg width="5%"><?=$this->lang->line('tpl_selected')?></TD>
            <TD class=tdbg width="15%"><DIV align=center><STRONG><?=$this->lang->line('tpl_cates');?><?=$this->lang->line('tpl_name');?></STRONG></DIV></TD>
            <TD class=tdbg width="20%"><DIV class=STYLE1 align=center>
                <DIV align=center><?=$this->lang->line('tpl_cates');?><?=$this->lang->line('tpl_desc')?></DIV>
              </DIV></TD>
            <TD class=tdbg width="14%"><DIV class=STYLE3 align=center>
                <DIV align=center><?=$this->lang->line('tpl_sort')?></DIV>
              </DIV></TD>
			  <TD class=tdbg width="14%"><DIV class=STYLE1 align=center>
                <DIV align=center><?=$this->lang->line('tpl_yes')?><?=$this->lang->line('tpl_no')?><?=$this->lang->line('tpl_ishow')?><!--/导航 --></DIV>
              </DIV></TD>
            <TD class=tdbg width="19%"><DIV align=center><STRONG><?=$this->lang->line('tpl_actions')?></STRONG></DIV></TD>
          </TR>
          <?php
		  foreach($categories as $key=>$val):
		  ?>
          <TR class=tr2 align=middle>
            <TD width="5%">
            	 <?php if($val['parent_id']!=0): ?>
            		<INPUT id=item type=checkbox value=<?php echo $val['id'] ?> name=id[] <?php if($val['cat_type']==1):?> disabled="disabled"<?php endif;?>></TD>
           		 <?php endif;?>
            <TD width="15%" class="module_<?=$val['level'];?>"><?=$val['name']?></TD>
            <TD width="20%" style="text-align:left"><?=$val['cat_desc']?></TD>
            <TD><?=$val['sort_order']?></TD>
			<TD>
			<?php if ($val['is_show']):?>
			<?=$this->lang->line('tpl_yes')?>
			<?php else:?>
			<?=$this->lang->line('tpl_no')?>
			<?php endif;?>
			<!--/ -->
			<?php 
			/*if ($val['show_in_nav']):?>
			<?=$this->lang->line('tpl_yes')?>
			<?php else:?>
			<?=$this->lang->line('tpl_no')?>
			<?php endif;*/?>			</TD>
            <TD>
			<A href="<?=site_url(array('categories','edit',$val['id']));?>"><?=$this->lang->line('tpl_act_edit')?></A>			</TD>
          </TR>
          <?php
		  endforeach;
		  ?>
          <TR class=tr_fff>
            <TD align=left colSpan=6>
            	<INPUT class=btn onClick="CheckAll('postform',true)" type=button value="<?=$this->lang->line('tpl_selectall')?>">
           		<INPUT class=btn onClick="CheckAll('postform',false)" type=button value="<?=$this->lang->line('tpl_cancel')?>">
              	<INPUT class=btn  type="submit" value="<?=$this->lang->line('tpl_act_remove')?>">
            	<input name="button" type=button class=btn onClick="window.location.href='<?=site_url('categories/add')?>'" value="<?php echo $this->lang->line('tpl_act_add')?>">
              <INPUT id=h_delid type=hidden name=h_delid>            
            </TD>
          </TR>
        </TBODY>
      </TABLE>
    </FORM>
  </DIV>
  <DIV class=admin_boxbottom> </DIV>
</DIV>
</BODY>
</HTML>
